#include "Simple_time.h"
#include "main.h"
Simple_time_t simple_time;
void SimpleTime_Init(GetTime get_time,uint32_t max)
{
	simple_time.get_time=get_time;
	simple_time.time_max=max;
}
void Simple_TimeOver()
{
	simple_time.time+=simple_time.time_max;	
}

long Simple_micros()
{
	if(!simple_time.get_time)
		return 0;
  return simple_time.time+simple_time.get_time();	
}
void Simple_Delay(int ms)
{
	HAL_Delay(ms);
}
void Simple_DelayMicroseconds(int us)
{
	
}